# Maintainer: Will Sinatra <wpsinatra@gmail.com>
pkgname=py3-pytweening
pkgver=1.2.0
pkgrel=2
pkgdesc="Set of tweening / easing functions implemented in Python"
url="https://github.com/asweigart/pytweening"
arch="noarch"
license="GPL-3.0-or-later"
makedepends="
	py3-gpep517
	py3-setuptools
	py3-wheel
	"
subpackages="$pkgname-pyc"
source="https://files.pythonhosted.org/packages/source/p/pytweening/pytweening-$pkgver.tar.gz"
builddir="$srcdir/pytweening-$pkgver"

build() {
	gpep517 build-wheel \
		--wheel-dir .dist \
		--output-fd 3 3>&1 >&2
}

check() {
	python3 -m venv --clear --without-pip --system-site-packages .testenv
	.testenv/bin/python3 -m installer .dist/*.whl
	.testenv/bin/python3 tests/basicTests.py
}

package() {
	python3 -m installer -d "$pkgdir" \
		.dist/*.whl
}

sha512sums="
2a06ab1ba3dfd8cb2446b53470613c05eb3133d071da84984c4512c7f9905be2b353918a2ca6ea58eb44cd1af50a55df2c4a6792be39d79f305ef6cbf43f742d  pytweening-1.2.0.tar.gz
"
